<?php
class User{
	public static function id(){
		if('Guest' === self::name()){
			return 0;
		} else {
			return Yii::app()->user->user_id;
		}
	}
	
	public static function name(){
		return Yii::app()->user->name;
	}
	
	public static function userPic(){
		return Yii::app()->user->user_pic;
	}
	
	public static function diskSize(){
		return Yii::app()->user->disk_size;
	}
	
	public static function diskUsed(){
		return Yii::app()->user->disk_used;
	}
}
